package com.team.recruitment_management_system.pojo.dto.education;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;

@Data
@Schema(description = "添加教育经历对象")
public class AddEducationDto {
    /**
     * 简历ID 外键
     */
    @Schema(description = "简历ID")
    @NotNull(message = "简历ID不能为空")
    private Integer resumeId;

    /**
     * 学校名称
     */
    @Schema(description = "学校名称")
    @NotEmpty(message = "学校名称不能为空")
    private String schoolName;

    /**
     * 学制类型(1全日制 2非全日制)
     */
    @Schema(description = "学制类型")
    @NotNull(message = "学制类型不能为空")
    private Integer type;

    /**
     * 学历(1高中及以下 2大专 3本科 4硕士 5博士)
     */
    @Schema(description = "学历")
    @NotNull(message = "学历不能为空")
    private Integer education;

    /**
     * 专业
     */
    @Schema(description = "专业")
    @NotBlank(message = "专业不能为空")
    private String major;

    /**
     * 入学年份 1998
     */
    @Schema(description = "入学年份")
    @NotEmpty(message = "入学年份不能为空")
    private String enrollmentYear;

    /**
     * 毕业年份 2002
     */
    @Schema(description = "毕业年份")
    @NotEmpty(message = "毕业年份不能为空")
    private String graduationYear;

    /**
     * 学校经历
     */
    @Schema(description = "学校经历")
    @NotBlank(message = "学校经历不能为空")
    private String schoolExperience;
}
